/**
 * @Author : yangsanjin
 * @Date: 2025-02-06 9:10
 */

export default [
    {
        path: '/:appKey',
        name: 'home',
        props: true,
        component: ()=>import('../views/MainLayout.vue'),
        children:[
            {
                path: '',
                name: 'homeIndex',
                props: true,
                component: ()=>import('../views/PortalHome.vue'),
            },
            {
                path: '/:appKey/MyBpmTaskList',
                name: 'MyBpmTaskList',
                component: () => import('@/views/modules/bpm/ws/MyBpmTaskList/MyBpmTaskList.vue')
            },
            {
                path: '/:appKey/MyBpmApprovedTasks',
                name: 'MyApprovedTasks',
                component: () => import('@/views/modules/bpm/ws/MyBpmApprovedTasks/MyBpmApprovedTasks.vue')
            },
            {
                path: '/:appKey/MyBpmTracked',
                name: 'MyTracked',
                component: () => import('@/views/modules/bpm/ws/MyBpmTracked/MyBpmTracked.vue')
            },
            {
                path: '/:appKey/MyBpmInstList',
                name: 'MyBpmInstList',
                component: () => import('@/views/modules/bpm/ws/MyBpmInstList/MyBpmInstList.vue')
            },{
                path: '/:appKey/myTurnTo',
                name: 'myTurnTo',
                component: () => import('@/views/modules/bpm/ws/MyBpmTurnTo/MyBpmTurnTo.vue')
            },
            {
                path: '/:appKey/myPending',
                name: 'myPending',
                component: () => import('@/views/modules/bpm/ws/MyBpmPending/MyBpmPending.vue')
            },
            {
                path: '/:appKey/MyTransOutTask',
                name: 'MyTransOutTask',
                component: () => import('@/views/modules/bpm/ws/MyBpmTransOutTask/MyBpmTransOutTask.vue')
            },
            {
                path: '/:appKey/MyReceiveTask',
                name: 'MyReceiveTask',
                component: () => import('@/views/modules/bpm/ws/MyBpmReceiveTask/MyBpmReceiveTask.vue')
            },
            {
                path: '/:appKey/myReceiveCopy',
                name: 'myReceiveCopy',
                component: () => import('@/views/modules/bpm/ws/MyBpmReceiveCopy/MyBpmReceiveCopy.vue')
            },
            {
                path: '/:appKey/MyConcern',
                name: 'MyConcern',
                component: () => import('@/views/modules/bpm/ws/MyBpmConcern/MyBpmConcern.vue')
            },
            {//工作台使用的 异步任务
                path: '/:appKey/MyBpmAsyncTask',
                name: 'MyAsyncTask',
                component: () => import('@/views/modules/bpm/ws/MyBpmAsyncTaskList/MyBpmAsyncTaskList.vue')
            },
            {//管理员 异步任务
                path: '/:appKey/asyncTask',
                name: 'asyncTask',
                component: () => import('@/views/modules/bpm/BpmAsyncTask/BpmAsyncTaskList.vue')
            },
            /*功能面板集*/
            {
                path: '/:appKey/funPanel',
                name: 'funPanel',
                component: () => import('@/views/modules/form/FormFun/FunPanel.vue')
            },
            /*功能面板集标签*/
            {
                path: '/:appKey/funPanelTabs',
                name: 'funPanelTabs',
                component: () => import('@/views/modules/form/FormFun/FunPanelTabs.vue')
            },
            /*功能面板集单页*/
            {
                path: '/:appKey/funPanelBlock',
                name: 'funPanelBlock',
                component: () => import('@/views/modules/form/FormFun/FunPanelBlock.vue')
            },
            //新闻列表
            {
                path: '/:appKey/insNewsList',
                name: 'insNewsList',
                component: () => import('@/views/modules/portal/InsNews/InsNewsList.vue')
            },
            {
                path:"/:appKey/webApp/innerMsgs/InfInnerMsgList",
                name: 'InfInnerMsgList',
                component: () => import('@/views/modules/portal/core/InfInnerMsgList.vue')
            }
        ]
    },
    {
        path: '/login',
        name: 'login',
        component: ()=>import('../views/Login.vue')
    },
    {
        //页面定制路由跳转预览
        path: '/:appKey/FormCustomView/:alias',
        name: 'FormCustomView',
        props: true,
        component: ()=>import('../views/modules/form/FormCustomView/FormCustomView.vue'),
    },
    {
        //门户预览
        path: '/:appKey/PortalLayoutPreview/:alias',
        name: 'PortalLayoutPreview',
        props: true,
        component: ()=>import('../views/modules/portal/PortalLayoutPreview/PortalLayoutPreview.vue'),
    },
    {
        path: '/:appKey/customform/:formAlias/:pkId',
        name: 'customform',
        component: ()=>import('../views/modules/form/FormSolutionShow/FormSolutionShow.vue'),
    },
    {
        path: '/:appKey/customFormRead/:formAlias/:pkId',
        name: 'customFormRead',
        component: ()=>import('../views/modules/form/FormSolutionShow/FormSolutionShow.vue'),
    },
    {
        path: '/:appKey/customform/:formAlias',
        name: 'customformNoPk',
        component: ()=>import('../views/modules/form/FormSolutionShow/FormSolutionShow.vue'),
    },
    {
        path: '/:appKey/customformtree/:formAlias',
        name: 'customformTreeNoPk',
        component: ()=>import('../views/modules/form/FormSolutionShow/FormSolutionTreeShow.vue'),
    },
    {
        path: '/:appKey/list/:listKey',
        name: 'formBoList',
        component: ()=>import('../views/modules/form/FormBoListPreview/FormBoListPreview.vue')
    },
    {
        path: '/:appKey/formPrint/:formAlias',
        name: 'formPrintNoPk',
        component: () => import('@/views/modules/form/FormSolutionPrint/FormSolutionPrint.vue')
    },
    {
        path: '/:appKey/formPrint/:formAlias/:pkId',
        name: 'formPrint',
        component: () => import('@/views/modules/form/FormSolutionPrint/FormSolutionPrint.vue')
    },
    {
        path: '/:appKey/new/:defKey',
        name:'newDoc',
        component: () => import('@/views/modules/bpm/OpenDoc/OpenDoc.vue')
    },
    {
        path: '/:appKey/openCustomDoc',
        name:'openCustomDoc',
        component: () => import('@/views/modules/form/workbench/OpenCustomDoc.vue')
    },
    {
        path: '/:appKey/openDoc/:instId',
        name:'openDoc',
        component: () => import('@/views/modules/bpm/OpenDoc/OpenDoc.vue')
    },
    {
        path: '/:appKey/flowPrint/:defId/:instId',
        name: 'flowPrint',
        component: () => import('@/views/modules/bpm/OpenDoc/BpmInstPrint.vue')
    },
    {
        path: '/:appKey/AccomplishBpm',
        name: 'AccomplishBpm',
        component: () => import('@/views/modules/bpm/OpenDoc/AccomplishBpm.vue')
    },

    {
        path: '/:appKey/formOperate/:instId',
        name: 'formOperate',
        component: () => import('@/views/modules/bpm/components/BpmInstFormOperat.vue')
    },
    {
        path: '/:appKey/dataSettingList',
        name: 'dataSettingList',
        component: () => import('@/views/modules/form/FormEntityDataSetting/FormEntityDataSettingList.vue')
    },
    {
        path: '/:appKey/calendarView/:calendarKey',
        name: 'FormCalendarViewShow',
        component: () => import('@/views/modules/form/FormCalendarViewShow/FormCalendarViewShow.vue')
    },
]
